import {createRouter, createWebHistory} from 'vue-router'
import Home from "@/views/Home.vue";
import VideoPlay from "@/views/VideoPlay.vue";
import UserCenter from "@/views/UserCenter.vue";
import UploadPage from "@/views/UploadPage.vue";
import Error from "@/views/Error.vue";
import Hot from "@/views/Hot.vue";
import StarPage from "@/views/StarPage.vue";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            //首页
            path: '/',
            name: '',
            component: Home
        },
        {
            //个人中心
            path: '/userCenter',
            name: 'userCenter',
            component: UserCenter
        },
        {
            //播放页
            path: '/playVideo',
            name: 'playVideo',
            component: VideoPlay
        },
        {
          path:"/Hot",
          name:'hot',
          component:Hot
        },
        {
            //上传视频
            path: '/uploadVideo',
            name: 'uploadVideo',
            component: UploadPage
        },
        {
            //直播页 开发中
            path: '/Live',
            name: 'live',
            component: Error
        },

    ]
})

export default router
